//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_TRI_STATE_H
#define MYSYSTEMCLEARNING_TRI_STATE_H

#include "systemc.h"

SC_MODULE(tri_state) {
    sc_in<bool> ready, dina, dinb;
    sc_out<sc_logic> selectx;

    void prc_tri_state();

    SC_CTOR(tri_state) {
        SC_METHOD(prc_tri_state);
        sensitive << ready << dina << dinb;
    }
};

#endif //MYSYSTEMCLEARNING_TRI_STATE_H
